-
Notifications
You must be signed in to change notification settings - Fork 441
Add nodeParent property to HTML, Document and DocumentFragment #66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
13b7575
5154341
fabb94b
b6332e0
1c4f5d8
9260deb
c4a6487
d4b0b27
71d91b7
6e6efde
6a2aae9
477a5a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -400,5 +400,40 @@ | |
"interface": "Element", | ||
"name": "getElementsByTagName", | ||
"signatures": ["getElementsByTagName(tagname: \"picture\"): NodeListOf<HTMLPictureElement>"] | ||
}, | ||
{ | ||
"kind": "interface", | ||
"name": "ParentNode", | ||
"flavor": "DOM", | ||
"properties": [ | ||
{ | ||
"name": "children", | ||
"type": "HTMLCollection" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i would add a "read-only" property here and make it "1". thought we do not support this in the script now, we should soon. this way we get the correct declaration later on. that also applies to the other properties. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should I send New Issue? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sure. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. did it. #67 |
||
}, | ||
{ | ||
"name": "firstElementChild ", | ||
"type": "Element" | ||
}, | ||
{ | ||
"name": "lastElementChild ", | ||
"type": "Element" | ||
}, | ||
{ | ||
"name": "childElementCount", | ||
"type": "number" | ||
} | ||
] | ||
}, | ||
{ | ||
"kind": "property", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i do not think this should be a property. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this interface, too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it should be added to the extends list. i do not know how to do that though :) @zhengbli what is the right way to do this? |
||
"interface": "Element", | ||
"name": "parentNode", | ||
"type": "parentNode" | ||
}, | ||
{ | ||
"kind": "property", | ||
"interface": "Document", | ||
"name": "parentNode", | ||
"type": "parentNode" | ||
} | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about querySelector, and querySelctorAll?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
HTML, Document and DocumentFragment interface already had been implimented NodeSelector interface. So, I think that no selector methods are required for ParentNode interface.