This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270645 - Element "track" not allowed as child of element "track" in this context. (Rule Category: Elements structure)
Summary: Element "track" not allowed as child of element "track" in this context. (Rul...
Status: NEW
Alias: None
Product: web
Classification: Unclassified
Component: HTML Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 10 x64
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-15 09:18 UTC by Abu3safeer
Modified: 2017-05-15 09:18 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abu3safeer 2017-05-15 09:18:42 UTC
Hello everyone, 
I was using multiple <track> tags inside <video> tag, but I experienced a weird error message, it says:
Element "track" not allowed as child of element "track" in this context. (Suppressing further errors from this subtree.)
From line 18, column 13; to line 18, column 91
(Rule Category: Elements structure)

The code is:
<video controls loop muted poster="https://placehold.it/300/">
            <source src="tedx.mp4" type="video/mp4">
            <track src="tedxen.vtt" kind="subtitles" srclang="en" label="English subtitle">
            <track src="tedxar.vtt" kind="subtitles" srclang="ar" label="Arabic subtitles">
            You can't see the video? blame yourself for using old browser, just go use something updated like Google Chrome of Firefox
        </video>

I have validated the documnt as HTML5 and it is valid, so I am sure my code is correct.