Skip to content

Commit 0f36e7a

Browse files
committed
DOC-3147: DomParser no longer tries to fix some nodes when parsed with a context, and Improved structure retention when inserting invalid HTML fragments.
1 parent b3a9cdd commit 0f36e7a

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

modules/ROOT/pages/8.0-release-notes.adoc

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
= {productname} {release-version}
32
:release-version: 8.0.0
43
:navtitle: {productname} {release-version}
@@ -126,6 +125,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
126125

127126
// CCFR here.
128127

128+
=== DomParser no longer tries to fix some nodes when parsed with a context
129+
// #TINY-8205
130+
131+
Previously, the `DomParser` would attempt to fix invalid HTML structures when parsing with a context, such as when inserting content into a specific element. This behavior lead to unexpected results, especially when the structure was not valid in the context of the parent element.
132+
133+
In {productname} {release-version}, the `DomParser` has been updated to no longer attempt to fix invalid nodes when parsing with a context. Instead, it will validate the nodes and only insert them if they are valid in the context of their parent element. If the nodes are invalid, they will not be inserted.
134+
129135

130136
[[removed]]
131137
== Removed
@@ -148,6 +154,13 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
148154

149155
// CCFR here.
150156

157+
=== Improved structure retention when inserting invalid HTML fragments
158+
// #TINY-8205
159+
160+
Previously, when inserting HTML fragments through APIs or pasting, the parser would attempt to fix invalid structures, which could lead to the loss of valid structures like tables and lists. This behavior was inconsistent and could result in unexpected outcomes when handling complex HTML content.
161+
162+
In {productname} {release-version}, the parser has been updated to improve the retention of structures when inserting HTML fragments. It now validates these fragments in the context of their parent structure, ensuring that valid structures are preserved even if the fragment contains invalid HTML resulting in more predictable and desirable outcomes when handling complex HTML content.
163+
151164

152165
[[security-fixes]]
153166
== Security fixes

0 commit comments

Comments
 (0)