You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Placing the cursor in the first <meta> element, then expanding the region, correctly selects Foobar, then <meta>Foobar</meta> as expected.
However, placing the cursor in the second <meta> element, then expanding the region, first selects Foo, then the entire document. The expected result is Foo, then Foo bar, then <meta>Foo bar</meta>.
I believe this is because ExpandRegion is treating this as HTML, in which <meta> is a self-closing tag; see expand_to_xml_node.py line 109. But it's not HTML, it's XML, and the rules are a little different.
Setting void_elements = [] solves this issue, but presumably creates undesired behavior when expanding in HTML and not XML.
The text was updated successfully, but these errors were encountered:
Consider this XML:
Placing the cursor in the first
<meta>
element, then expanding the region, correctly selectsFoobar
, then<meta>Foobar</meta>
as expected.However, placing the cursor in the second
<meta>
element, then expanding the region, first selectsFoo
, then the entire document. The expected result isFoo
, thenFoo bar
, then<meta>Foo bar</meta>
.I believe this is because ExpandRegion is treating this as HTML, in which
<meta>
is a self-closing tag; seeexpand_to_xml_node.py
line 109. But it's not HTML, it's XML, and the rules are a little different.Setting
void_elements = []
solves this issue, but presumably creates undesired behavior when expanding in HTML and not XML.The text was updated successfully, but these errors were encountered: