Skip to content

tidy validates incorrectly inside of <template> #282

Closed
@shwoodard

Description

@shwoodard

Templates should be validated with different semantics. IOW, if I am templating an <li>, I should not be warned that an <ul> will be implicitly inserted.

Template html src

<template id="tmpl__lane">
  <li class="lane">
    <h2></h2>
    <ol class="stories"></ol>
  </li>
</template>

Error on line one:

missing </template> before <li>

Error on line 2

inserting implicit <ul>

Error on line three

trimming empty <h2>

imho, none of these errors should appear due that we are inside of a <template>.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions