File tree 1 file changed +2
-11
lines changed
w3/python/core/fundamental_interface 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -90,16 +90,6 @@ def __init__(self,
90
90
self ._owner_document : Optional [_Document ]
91
91
self ._read_only : bool
92
92
93
- def _check_modifiable (self ) -> None :
94
- """Checks if this node is modifiable.
95
-
96
- Raises:
97
- DOMException:
98
- - `NO_MODIFICATION_ALLOWED_ERR`: Raised when the node is readonly.
99
- """
100
- if self ._read_only :
101
- raise DOMException (DOMException .NO_MODIFICATION_ALLOWED_ERR )
102
-
103
93
@property
104
94
def node_name (self ) -> DOMString :
105
95
"""Read only; The name of this node, depending on its type."""
@@ -131,7 +121,8 @@ def _set_node_value(self, value: DOMString) -> None:
131
121
DOMException:
132
122
- `NO_MODIFICATION_ALLOWED_ERR`: Raised when the node is readonly.
133
123
"""
134
- self ._check_modifiable ()
124
+ if self ._read_only :
125
+ raise DOMException (DOMException .NO_MODIFICATION_ALLOWED_ERR )
135
126
self ._node_value = DOMString (value )
136
127
137
128
@property
You can’t perform that action at this time.
0 commit comments