Skip to content

title is not being converted to HTML format #2

@testmigrator

Description

@testmigrator

the to_html method is not handling the title tag properly, and there are similar issues with other tags such as iframe.

TEST(test, handlesKnownEmptyTitle){
    string h = "<html><head><title /><meta name=foo></head><body>One</body></html>";
    parser parse;
    node_ptr doc = parse.parse(h);

    //<html><head><title></title><meta name=\"foo\"></head><body>One</body></html>
    ASSERT_EQ("<html>\n\t<head>\n\t\t<title />\n\t\t<meta name=\"foo\" />\n\t</head>\n\t<body>One</body>\n</html>", doc->to_html());
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions