Skip to content

Commit 4c5d945

Browse files
committed
Update changelog and tests
1 parent acaf2ec commit 4c5d945

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
- Fix `.text()` and `iter()` for HTML fragments when there are multiple nodes at the root level. Resolves #209.
77
- Update lexbor. Resolves #212.
8+
- Breaking changes: Empty tags are now serialized to `<div value="">` instead of `<div value>`
9+
([Commit 4530fed](https://github.com/lexbor/lexbor/commit/4530fed3f3a2b1c3729f7742be4f56131cb8e086)).
810

911
# Version 0.4.6
1012

tests/test_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ def test_decompose_root_node():
308308
def test_empty_attribute_lexbor():
309309
div = create_tag("div")
310310
div.attrs["hidden"] = None
311-
assert div.html == "<div hidden></div>"
311+
assert div.html == '<div hidden=""></div>'
312312

313313

314314
def test_pseudo_class_contains():

0 commit comments

Comments
 (0)