-
Notifications
You must be signed in to change notification settings - Fork 7.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DOMCharacterData::$data and DOMAttr::$value are writable
- Loading branch information
1 parent
2dafb0e
commit cdf2f3e
Showing
2 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cdf2f3e
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.
When I looked into this, I found that the last three DOMEntity properties are also writable -- though they are dummy properties, they just always return null and writing them doesn't do anything.
Checking the DOM standard, I found that the DOM 3 working draft had these properties as writable, while the final version has them as readonly -- but also uses different names for them. In DOM 4 they are entirely gone.
So I think it should be fine to make them actually readonly in the implementation at least.
cdf2f3e
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.
Thanks for checking this! I'll submit a PR later. :)
cdf2f3e
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.
For reference: I've just submitted #7406