File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -915,10 +915,22 @@ def mathml_annotation_xml_integration_point(self, value: bool) -> None:
915
915
916
916
@property
917
917
def id (self ) -> typing .Optional [str ]:
918
+ """
919
+ Returns the `id` attribute of the element as `str`.
920
+
921
+ Important note: this property is read-only. use self.attrs to modify it if you want.
922
+ """
923
+ # TODO: make this property writable.
918
924
return self ._raw .id ()
919
925
920
926
@property
921
927
def class_list (self ) -> typing .List [str ]:
928
+ """
929
+ Returns the `class` attribute of the element as `list[str]`.
930
+
931
+ Important note: this property is read-only. use self.attrs to modify it if you want.
932
+ """
933
+ # TODO: Return a ElementClassList type instead of list[str] to have better control.
922
934
return self ._raw .class_list ()
923
935
924
936
def create_doctype (
You can’t perform that action at this time.
0 commit comments