Skip to content

<source> tag throwing error since alpha.48 (d388c0a) #5663

Closed

Description

@markharding

It appears that angular2 wants the <source .. > tag to be closed. <source ..> and are both invalid according to w3 spec (as far as I know).

Markup:

<video autoplay muted loop poster="assets/videos/traffic-1/traffic-1.png">
      <source src="assets/videos/traffic-1/traffic-1.webm" type="video/webm">
      <source src="assets/videos/traffic-1/traffic-1.mp4" type="video/mp4">
</video>

Console log:

EXCEPTION: Template parse errors:
Unexpected closing tag "video" ("ideo/webm">
          <source src="assets/videos/traffic-1/traffic-1.mp4" type="video/mp4">
        [ERROR ->]</video>
      </div>
      <div class="overlay">
"): e@6:8
Unexpected closing tag "div" ("       <source src="assets/videos/traffic-1/traffic-1.mp4" type="video/mp4">
        </video>
      [ERROR ->]</div>
      <div class="overlay">
        <img src="assets/logos/medium-white.png" class="m-logo"/>
"): e@7:6

Ref: http://www.w3.org/TR/html-markup/source.html

Activity

  1. woppa684 commented on Dec 7, 2015

    @woppa684

    "source" is a void element and should NOT be closed indeed, so, what you're saying should be correct, see also #5563

  2. angular-automatic-lock-bot commented on Sep 7, 2019

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  3. locked and limited conversation to collaborators on Sep 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions