Merge lp:~facelessuser/beautifulsoup/beautifulsoup into lp:beautifulsoup
Proposed by
Isaac Muse
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merge reported by: | Leonard Richardson | ||||||||
Merged at revision: | not available | ||||||||
Proposed branch: | lp:~facelessuser/beautifulsoup/beautifulsoup | ||||||||
Merge into: | lp:beautifulsoup | ||||||||
Diff against target: |
87 lines (+19/-8) 2 files modified
bs4/formatter.py (+13/-8) bs4/tests/test_html5lib.py (+6/-0) |
||||||||
To merge this branch: | bzr merge lp:~facelessuser/beautifulsoup/beautifulsoup | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Leonard Richardson | Pending | ||
Review via email: mp+398038@code.launchpad.net |
Description of the change
Add bare attribute logic to html5 formatter as discussed in https:/
To post a comment you must log in.
This looks good. I'm going to make a few changes on top of this:
1. Call these "boolean attributes" rather than "bare attributes" because that's how the HTML5 spec refers to them (https:/ /www.w3. org/TR/ html50/ infrastructure. html#boolean- attributes)
2. Documentation update when talking about the 'html5' formatter.
3. Add a test to verify that the 'html' formatter keeps the same behavior as before.