add disabled attr to element (#860)
This commit is contained in:
@@ -938,7 +938,8 @@ function buildElementObject(frame, element, interactable, purgeable = false) {
|
||||
attr.name === "selected" ||
|
||||
attr.name === "aria-selected" ||
|
||||
attr.name === "readonly" ||
|
||||
attr.name === "aria-readonly"
|
||||
attr.name === "aria-readonly" ||
|
||||
attr.name === "disabled"
|
||||
) {
|
||||
if (attrValue && attrValue.toLowerCase() === "false") {
|
||||
attrValue = false;
|
||||
|
||||
@@ -30,6 +30,7 @@ RESERVED_ATTRIBUTES = {
|
||||
"checked",
|
||||
"data-original-title", # for bootstrap tooltip
|
||||
"data-ui",
|
||||
"disabled", # for button
|
||||
"for",
|
||||
"href", # For a tags
|
||||
"maxlength",
|
||||
|
||||
Reference in New Issue
Block a user