Skip to content

Attribute values not quoted when getting HTML from Document #31

Description

@forbjok

When simply parsing a HTML and then immediately re-retrieving it from the DOM document, quotes around attribute values disappear.
I noticed this because unit tests in one of my projects started failing due to retrieved HTMLs no longer matching the expected output.

This issue appears to have been introduced in v0.3.0. (0.2.19 and earlier don't have this, but of course, also don't compile with current D compilers)

Simple reproduction project showing the issue:
htmld-repro.zip

As far as I can tell, this is not technically a bug, but perhaps there should be a setting to force quoting of all attribute values, as I (and probably others) find inconsistent quoting in the resulting HTML to look messy and undesirable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions