#177 new
fiann

Anchor doesn't implement URL decomposition IDL attributes

Reported by fiann | August 23rd, 2010 @ 03:00 AM

Anchor elements (A, AREA) should implement the same interface as Location - setting the href attribute should allow you to read host, port, pathname etc.

This is listed in the HTML 5 spec.

Currently, anchor.getAttribute('href') correctly returns the text of the attribute as it appears in the HTML, which could be a relative URL. a.href gives the fully qualified URL which has been parsed relative to the current page. But it doesn't expose the URL components.

No comments found

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

a javascript browser environment

People watching this ticket

Pages