diff --git a/language-snippets.ent b/language-snippets.ent index 2b8272e395b1..89c8ce402104 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -1619,6 +1619,10 @@ it is inserted with (e.g.) DOMNo '> +DOMException with code + DOM_HIERARCHY_REQUEST_ERR.'> + Upon failure, an E_WARNING is emitted. diff --git a/reference/dom/domcharacterdata/after.xml b/reference/dom/domcharacterdata/after.xml index 81ec1448e49a..00e7714810fb 100644 --- a/reference/dom/domcharacterdata/after.xml +++ b/reference/dom/domcharacterdata/after.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domcharacterdata/before.xml b/reference/dom/domcharacterdata/before.xml index 5a37b1b0de2d..fb2dac93161b 100644 --- a/reference/dom/domcharacterdata/before.xml +++ b/reference/dom/domcharacterdata/before.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domcharacterdata/replacewith.xml b/reference/dom/domcharacterdata/replacewith.xml index be2d2e9b8f92..221fe1483b1b 100644 --- a/reference/dom/domcharacterdata/replacewith.xml +++ b/reference/dom/domcharacterdata/replacewith.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domchildnode/after.xml b/reference/dom/domchildnode/after.xml index 1844c0a95244..d3e071ba800d 100644 --- a/reference/dom/domchildnode/after.xml +++ b/reference/dom/domchildnode/after.xml @@ -48,6 +48,36 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling this method on a node without a parent is now a no-op to align the behaviour with the DOM specification. + &dom.changelog.previous_hierarchy_exception; + + + + 8.3.0 + + Calling this method on a node without an owner document now works. + &dom.changelog.previous_hierarchy_exception; + + + + + + + &reftitle.seealso; diff --git a/reference/dom/domchildnode/before.xml b/reference/dom/domchildnode/before.xml index 236f14014471..699b87e3fd8c 100644 --- a/reference/dom/domchildnode/before.xml +++ b/reference/dom/domchildnode/before.xml @@ -48,6 +48,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling this method on a node without a parent is now a no-op to align the behaviour with the DOM specification. + &dom.changelog.previous_hierarchy_exception; + + + + + + + &reftitle.seealso; diff --git a/reference/dom/domchildnode/replacewith.xml b/reference/dom/domchildnode/replacewith.xml index f94e40826a33..29f5caf82fa6 100644 --- a/reference/dom/domchildnode/replacewith.xml +++ b/reference/dom/domchildnode/replacewith.xml @@ -48,6 +48,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling this method on a node without a parent is now a no-op to align the behaviour with the DOM specification. + &dom.changelog.previous_hierarchy_exception; + + + + + + + &reftitle.seealso; diff --git a/reference/dom/domdocument/append.xml b/reference/dom/domdocument/append.xml index 2a621b801c45..fde57677de18 100644 --- a/reference/dom/domdocument/append.xml +++ b/reference/dom/domdocument/append.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domdocument/createattributens.xml b/reference/dom/domdocument/createattributens.xml index 6717245ad3e6..17696fbc5f47 100644 --- a/reference/dom/domdocument/createattributens.xml +++ b/reference/dom/domdocument/createattributens.xml @@ -73,6 +73,37 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling this method without specifying a prefix will now choose a prefix instead of assuming the default namespace. + Previously this would create an attribute without a prefix and incorrectly apply the namespace + to the owner element because default namespaces don't apply on attributes. + + + + 8.3.0 + + Calling this method using a prefix that was already declared on the owner element with a different namespace URI + will now change the new prefix to avoid creating namespace conflicts. This aligns the behaviour with the DOM specification. + Previously this threw a DOMException with code DOM_NAMESPACE_ERR. + + + + + + &reftitle.seealso; diff --git a/reference/dom/domdocument/prepend.xml b/reference/dom/domdocument/prepend.xml index 26d2ee3a7be1..76b9482f1c09 100644 --- a/reference/dom/domdocument/prepend.xml +++ b/reference/dom/domdocument/prepend.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domdocument/replacechildren.xml b/reference/dom/domdocument/replacechildren.xml index a31a0d002656..f6542977c935 100644 --- a/reference/dom/domdocument/replacechildren.xml +++ b/reference/dom/domdocument/replacechildren.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domdocumentfragment/append.xml b/reference/dom/domdocumentfragment/append.xml index 262ec46fa946..40c82fd477f9 100644 --- a/reference/dom/domdocumentfragment/append.xml +++ b/reference/dom/domdocumentfragment/append.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domdocumentfragment/prepend.xml b/reference/dom/domdocumentfragment/prepend.xml index 626edf014f6a..bd6692198abb 100644 --- a/reference/dom/domdocumentfragment/prepend.xml +++ b/reference/dom/domdocumentfragment/prepend.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domdocumentfragment/replacechildren.xml b/reference/dom/domdocumentfragment/replacechildren.xml index 455be627111e..8d81d454f67c 100644 --- a/reference/dom/domdocumentfragment/replacechildren.xml +++ b/reference/dom/domdocumentfragment/replacechildren.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domelement/after.xml b/reference/dom/domelement/after.xml index de644572204b..eac58a593af9 100644 --- a/reference/dom/domelement/after.xml +++ b/reference/dom/domelement/after.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domelement/append.xml b/reference/dom/domelement/append.xml index e74d8fc2af6b..bcd3e8adb9a6 100644 --- a/reference/dom/domelement/append.xml +++ b/reference/dom/domelement/append.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domelement/before.xml b/reference/dom/domelement/before.xml index 51509481ea8d..c51c2c788646 100644 --- a/reference/dom/domelement/before.xml +++ b/reference/dom/domelement/before.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domelement/prepend.xml b/reference/dom/domelement/prepend.xml index 790a45e183a7..3ed578f594fc 100644 --- a/reference/dom/domelement/prepend.xml +++ b/reference/dom/domelement/prepend.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domelement/replacechildren.xml b/reference/dom/domelement/replacechildren.xml index facdf5944b08..9b3ebae53adb 100644 --- a/reference/dom/domelement/replacechildren.xml +++ b/reference/dom/domelement/replacechildren.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domelement/replacewith.xml b/reference/dom/domelement/replacewith.xml index 7ce4ee0d6f55..b116a27423e9 100644 --- a/reference/dom/domelement/replacewith.xml +++ b/reference/dom/domelement/replacewith.xml @@ -19,6 +19,7 @@ + &reftitle.examples; diff --git a/reference/dom/domparentnode/append.xml b/reference/dom/domparentnode/append.xml index b0e27831b9f9..08c7a589d226 100644 --- a/reference/dom/domparentnode/append.xml +++ b/reference/dom/domparentnode/append.xml @@ -48,6 +48,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling this method on a node without an owner document now works. + &dom.changelog.previous_hierarchy_exception; + + + + + + + &reftitle.seealso; diff --git a/reference/dom/domparentnode/prepend.xml b/reference/dom/domparentnode/prepend.xml index 8f3a66ad76ca..624f91efbdad 100644 --- a/reference/dom/domparentnode/prepend.xml +++ b/reference/dom/domparentnode/prepend.xml @@ -48,6 +48,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling this method on a node without an owner document now works. + &dom.changelog.previous_hierarchy_exception; + + + + + + + &reftitle.seealso; diff --git a/reference/dom/domparentnode/replacechildren.xml b/reference/dom/domparentnode/replacechildren.xml index bfd21197e07f..2f5163775e05 100644 --- a/reference/dom/domparentnode/replacechildren.xml +++ b/reference/dom/domparentnode/replacechildren.xml @@ -48,6 +48,29 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.3.0 + + Calling this method on a node without an owner document now works. + &dom.changelog.previous_hierarchy_exception; + + + + + + + &reftitle.examples;