LIT-EIA / adapt-esdc-accessibilityfixes

Extension to load and run a .js file when a course loads
GNU General Public License v3.0
5 stars 2 forks source link

PARSING ERROR - Can't use href on <a> tag ??? [RDI 2.49] #48

Open LIT-EIA-OWNER opened 3 years ago

LIT-EIA-OWNER commented 3 years ago

Attribute href not allowed on element a at this point.

From line 125, column 2741; to line 125, column 2956

></button><a href="javascript:void(0);" class="mejs-volume-slider" aria-label="Curseur de volume" aria-valuemi…max="100" aria-valuenow="80" aria-valuetext="80%" role="slider" tabindex="0" style="display: none;"><span

Attributes for element a: Global attributes

href — Address of the hyperlink target — Browsing context for hyperlink navigation download — Whether to download the resource instead of navigating to it, and its filename if so ping — URLs to ping rel — Relationship between the location in the document containing the hyperlink and the destination resource hreflang — Language of the linked resource type — Hint for the type of the referenced resource referrerpolicy — Referrer policy for fetches initiated by the element

LIT-EIA-OWNER commented 3 years ago

is a common alternative which might arguably be less bad. However you must remember to return false from your onclick event handler to prevent the link being followed and scrolling up to the top of the page.

In some cases there may be an actual useful place to point the link to. For example if you have a control you can click on that opens up a previously-hidden