Skip to content

Can not pass <audio> template #5694

Closed
Closed

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.

Activity

  1. robwormald commented on Dec 8, 2015

    @robwormald
    Contributor

    dupe of #5663 and fixed in #5668

  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

    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