Replies: 1 comment 1 reply
-
All tickets related to the current milestone 0.9.0 have been closed. If nothing else comes up the current version will be released as 0.9.0 in the near future. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
All Commits
0.9.8
Fixed
#839
/#838
#847
/#838
Chore
#845
Thank you,
@kboshold,
@Ponynjaa,
for your contributions.
0.9.7
Added
hasAttributes
#804
Fixed
#802
/#803
#817
/#819
Performance
DOM.compareDocumentPosition
#805
Chore
Thank you,
@zorkow,
@Ponynjaa,
@WesselKroos,
for your contributions.
0.9.6
Fixed
#790
/#794
/#797
Chore
#792
Thank you, @eglitise, for your contributions.
0.9.5
Fixed
#763
/#766
Thank you,
@mureinik,
for your contributions.
0.9.4
Fixed
#748
/#760
warning
(fix(types): correct error handler level towarning
#759)#754
/#759
Docs
#758
Thank you, @luffynando, @mattiasw, @JoinerDev, for your contributions.
0.9.3
Fixed
Node
andProcessingInstruction
types#725
/#726
getElements*
methods returnLiveNodeList<Element>
#731
/#734
Node
props#728
, triggered by unclosed#724
Docs
Chore
Thank you, @Ponynjaa, @ayZagen, @sserdyuk, @wydengyre, @mykola-mokhnach, @benkroeger, for your contributions.
0.9.2
Feature
Element.getElementsByClassName
#722
Fixed
Document.documentElement
andElement.tagName
#721
#720
Thank you, @censujiang, @Mathias-S, for your contributions
0.9.1
Fixed
#713
isHTMLMimeType
in type definition#715
/#712
#717
/#285
/#695
Other
#710
Thank you, @krystofwoldrich, @marvinruder, @amacneil, @defunctzombie, @tjhorner, @danon, for your contributions.
0.9.0
Summary on dev.to
Features
#637
/#40
#634
/#633
Fixed
#692
#554
#550
Other
#556
#697
#546
#524
#566
#644
#511
Thank you, @kboshold, @edi9999, @apupier, @shunkica, @homer0, @jhauga, @UdayKharatmol, for your contributions
0.9.0-beta.11
Fixed
#519
/#45
/#125
/#467
BREAKING-CHANGE: Reports more not well-formed documents as fatalError
and drop broken support for optional and unclosed tags in HTML.
Other
#518
#517
Thank you, @brodybits, @cbettinger, @josecarlosrx, for your contributions
0.9.0-beta.10
Fixed
#514
/#499
Chore
#513
Thank you, @qtow, @shunkica, @homer0, for your contributions
0.9.0-beta.9
Fixed
#509
/#505
#498
/#497
/#117
BREAKING CHANGES: Many documents that were previously accepted by xmldom, esecially non well-formed ones are no longer accepted. Some issues that were formerly reported as errors are now a fatalError.
#454
Chore
#496
toErrorSnapshot
windows compatible#503
Thank you, @cjbarth, @shunkica, @pmahend1, @niklasl, for your contributions
0.9.0-beta.8
Fixed
#494
/#135
BREAKING CHANGE: Previously it was possible (but not documented) to call
Node.removeChild
with any node in the tree,and with certain exceptions, it would work. This is no longer the case: calling
Node.removeChild
with an argument that is not a direct child of the node that it is called from, will throw a NotFoundError DOMException, as it is described by the specs.Thank you, @noseworthy, @davidmc24, for your contributions
0.9.0-beta.7
Feature
compareDocumentPosition
method from level 3 spec.#488
Fixed
getAttribute
andgetAttributeNS
should returnnull
(fix:getAttribute
andgetAttributeNS
should returnnull
#477)#46
#46
#485
/#486
#489
BREAKING CHANGE: Iteration over attributes now happens in the right order and non-existing attributes now return
null
instead of undefined. THe same is true for thenamepsaceURI
andprefix
of Attr nodes.All of the changes are fixing misalignment with the DOM specs, so if you expected it to work as specified,
nothing should break for you.
Chore
#481
/#483
Thank you, @bulandent, @zorkow, for your contributions
0.9.0-beta.6
Fixed
#457
/#455
/#456
Thank you, @edemaine, @pedro-l9, for your contributions
0.9.0-beta.5
Fixed
#452
/#453
Thank you, @fengxinming, for your contributions
0.9.0-beta.4
Fixed
CVE-2022-39353
In case such a DOM would be created, the part that is not well-formed will be transformed into text nodes, in which xml specific characters like
<
and>
are encoded accordingly.In the upcoming version 0.9.0 those text nodes will no longer be added and an error will be thrown instead.
This change can break your code, if you relied on this behavior, e.g. multiple root elements in the past. We consider it more important to align with the specs that we want to be aligned with, considering the potential security issues that might derive from people not being aware of the difference in behavior.
Related Spec: https://dom.spec.whatwg.org/#concept-node-ensure-pre-insertion-validity
Chore
lib
#448
/#190
#447
/#29
/#130
Thank you, @XhmikosR, @awwright, @frumioj, @cjbarth, @markgollnick for your contributions
0.9.0-beta.3
Fixed
#445
/#416
BREAKING CHANGE: It no longer reports an error when parsing HTML containing incomplete closing tags, to align the behavior with the one in the browser.
BREAKING CHANGE: If your code relied on not well-formed XML to be parsed and include subsequent tags, this will no longer work.
#440
Other
#444
Thank you, @ACN-kck, @mgerlach for your contributions
0.9.0-beta.2
Fixed
#437
/#436
Thank you, @Supraja9726 for your contributions
0.9.0-beta.1
Fixed
Only use HTML rules if mimeType matches
#338
, fixes#203
In the living specs for parsing XML and HTML, that this library is trying to implement,
there is a distinction between the different types of documents being parsed:
There are quite some rules that are different for parsing, constructing and serializing XML vs HTML documents.
So far xmldom was always "detecting" whether "the HTML rules should be applied" by looking at the current namespace. So from the first time an the HTML default namespace (
http://www.w3.org/1999/xhtml
) was found, every node was treated as being part of an HTML document. This misconception is the root cause for quite some reported bugs.BREAKING CHANGE: HTML rules are no longer applied just because of the namespace, but require the
mimeType
argument passed toDOMParser.parseFromString(source, mimeType)
to match'text/html'
. Doing so implies all rules for handling casing for tag and attribute names when parsing, creation of nodes and searching nodes.BREAKING CHANGE: Correct the return type of
DOMParser.parseFromString
toDocument | undefined
. In case of parsing errors it was always possible that "the returnedDocument
" has not been created. In case you are using Typescript you now need to handle those cases.BREAKING CHANGE: The instance property
DOMParser.options
is no longer available, instead use the individualreadonly
property per option (assign
,domHandler
,errorHandler
,normalizeLineEndings
,locator
,xmlns
). Those also provides the default value if the option was not passed. The 'locator' option is now just a boolean (default remainstrue
).BREAKING CHANGE: The following methods no longer allow a (non spec compliant) boolean argument to toggle "HTML rules":
XMLSerializer.serializeToString
Node.toString
Document.toString
The following interfaces have been implemented:
DOMImplementation
now implements all methods defined in the DOM spec, but not all of the behavior is implemented (see docstring):createDocument
creates an "XML Document" (prototype:Document
, propertytype
is'xml'
)createHTMLDocument
creates an "HTML Document" (type/prototype:Document
, propertytype
is'html'
).false
no child nodes are createdDocument
now has two new readonly properties as specified in the DOM spec:contentType
which is the mime-type that was used to create the documenttype
which is either the string literal'xml'
or'html'
MIME_TYPE
(/lib/conventions.js
):hasDefaultHTMLNamespace
test if the provided string is one of the miem types that implies the default HTML namespace:text/html
orapplication/xhtml+xml
Thank you @weiwu-zhang for your contributions
Chore
Beta Was this translation helpful? Give feedback.
All reactions