-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add new DOM Living Standard API to ext/dom #4709
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
Closed
Closed
Changes from 41 commits
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
a64d792
dom: Let DOMElement implement DOM Level 4 DOMParentNode interface
beberlei 506fd39
[dom] Have DOMDocument implement DOMParentNode.
beberlei 4f3796e
[dom] Add DOMParentNode implementation to DOMDocumentFragment. Fix te…
beberlei 799db74
[dom] Add DOMNode#previousElementSibling and DOMNode#nextElementSibling.
beberlei 865f65f
[dom] DomChildNode#remove interface and DOMElement implementation
beberlei adce6d1
[dom] fix parameter parsing for DomElement#remove()
beberlei 18d4395
RETURN_NULL as proto is always void.
beberlei 07362cd
Test: DOM Level4 DOMNode::remove()
ThomasWeinert ca72b19
Test: DOM Level4 DOMNode::before()
ThomasWeinert 33368a0
Test: DOM Level4 DOMNode::after()
ThomasWeinert 6b1d65e
Test: DOM Level4 DOMNode::replaceWith()
ThomasWeinert 46a3248
Test: DOM Level4 DOMParentNode::prepend()
ThomasWeinert 94b7500
Test: DOM Level4 DOMParentNode::append()
ThomasWeinert fc6c639
Add DOMParentNode::append() for DOMElement supporting strings as vari…
beberlei c62b8b5
Adopt DoMNode into fragment when passed an object.
beberlei ece10c6
Refactor converting zval array into dom fragment into function.
beberlei 0670bdd
Add DOMElement::prepend.
beberlei 518583d
Refactor dom_zvals_to_fragment to convert all non DOMNode zvals of an…
beberlei 36f299b
Add prepend/append to DOMParentNode interface and add dummy implement…
beberlei f03fbae
Add docs to DOMParentNode methods.
beberlei 080ee99
Add code for DOMDocument+DOMDocumentFragment implementations of appen…
beberlei cb5bffa
Add DOMElement::after() and ::before() stubs.
beberlei 4021b9e
Implement DOMElement::after() and DOMElement::before()
beberlei 7fa76e6
Make DOMCharacterData implements DOMChildNode
beberlei 1b08995
Test: DOM Level4 node adoption and append with attributes
ThomasWeinert c6f732c
Add namespace reconcile support for append/prepend/after/before.
beberlei 7e6528a
Update tests.
beberlei 3165e36
Prototype on node adoption.
beberlei 553e073
Move previous/nextElementSibling from DOMNode to DOMElement+DOMCharac…
beberlei 8685c14
Add stub for DOMElement#replaceWith and DOMCharacterData#replaceWith.
beberlei 30907dd
Guard against no fragment and throw exception on invalid node types.
beberlei 6fce31e
Similar to DOMNode::appendChild, prevent append/prepend for DOMAttr.
beberlei 4690683
Throw DOMException Hierachy Request Error to be more in line with DOM…
beberlei 1722e0f
Factor out dom_child_node_remove helper function for reuse.
beberlei 565696b
Implement DOMElement::replaceWith, DOMCharacterData::replaceWith.
beberlei 5bbd796
Remove adoptNode prototype as adopting nodes is not implemented and W…
beberlei 81c056e
Merge master into DomLivingStandard.
beberlei a3f9c0d
Merge origin/master into DomLivingStandard
beberlei b85b9ec
Add DOMLivingStandard APIs to dom.stub.php
beberlei 0f3b6cd
More tests for wrong document error in parent and child node cases.
beberlei c4ac9a4
merge master into DomLivingStandard
beberlei 66ea5b1
Expand on append() test
beberlei 7daaf9b
Expand on ::prepend() test.
beberlei c0741a3
Merge branch 'master' into DomLivingStandard
beberlei eac2482
Remove trailing whitespaces from Node Content: test output.
beberlei 0fef8ec
Add more things to prepend test.
beberlei 9cf62b6
Apply review comments, improve test output and add more complexity to…
beberlei d875308
RETURN_THROWS
beberlei 9b79816
Free memory appropriately
beberlei 2031c2b
Bugfix: after/before loosing nodes.
beberlei 1c497bc
Move empty children test into prepend function to avoid duplication.
beberlei 3bc655e
Add test for DOMNode#remove with dangling element causing error.
beberlei e3f7983
Cleanup tests
beberlei 0372245
Fix stub style
beberlei 363e4f8
Factor out dom_parent_node_assign_parent
beberlei c686680
Centralize newchild->prev assignment to the end everywhere.
beberlei 7be07e4
Cleanup fragment and parent node assignment.
beberlei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.