Skip to content

Update serialization to use HTML instead of XML#891

Merged
ThierryA merged 3 commits intodevelopfrom
update/html-serialization
Jan 24, 2018
Merged

Update serialization to use HTML instead of XML#891
ThierryA merged 3 commits intodevelopfrom
update/html-serialization

Conversation

@westonruter
Copy link
Copy Markdown
Member

@westonruter westonruter commented Jan 23, 2018

  • Updates minimum required PHP version to 5.3. The AMP plugin currently supports PHP 5.2. Because of this it has meant that DOMDocument::saveHTML($node) has not available since it was introduced in 5.3. Using saveXML instead causes other problems, including injection of CDATA sections, unbooleanized attributes, and self-closing tags. Instead of trying to work around all of these issues to continue supporting PHP 5.2, I think it would be more sensible to update the minimum requirement to PHP 5.3.
  • Fully deprecates blacklist sanitizer.

This prevents CDATA sections, erroneous self-closing tags, and un-booleanized attributes from happening.
@westonruter westonruter force-pushed the update/html-serialization branch from 25b1fd9 to a0ceeac Compare January 24, 2018 18:04
@westonruter
Copy link
Copy Markdown
Member Author

Rebased to resolve merge conflict. Former HEAD was 25b1fd9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants