X Tutup
Skip to content

Can not pass <audio> template #5694

@yizhan

Description

@yizhan

<audio> element was working fine in Angular 2 alpha 46 template, but start to broken in alpha 47, and version 48 still not working, too. It seems the new template parser do not like the non closed <source>. By adding </source> will remove error message, but it would be invalid.

I have made a example for it. Please let me know If I did anything wrong.
http://plnkr.co/edit/Y5sr0W?p=preview
You need open console to see the error.

"ORIGINAL EXCEPTION: Template parse errors:
Unexpected closing tag "audio" ("io>
      <source src="http://www.pacdv.com/sounds/applause-sounds/app-5.mp3" type="audio/ogg">
    [ERROR ->]</audio>
  "): App@4:4"

Audio is very important to us, we normally do load src dynamically with [src]='audioAddress', but with version 47 and 48 I have to add the source by creating a new Element.

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

      X Tutup