K
kangax
According to MSDN [1], if iFlag is set to the integer 2, the
getAttribute() method should return "... the value exactly as it was
set in script or in the source document."
Yet, when appending anchor element via innerHTML, calling
getAttribute('href', 2) on that element always returns string
representing absolute url (ignoring the actual value).
Does anyone know of a way to get value of href attribute exactly as it
was defined in the document?
[1] http://msdn2.microsoft.com/en-us/library/ms536429.aspx
Thank you.
getAttribute() method should return "... the value exactly as it was
set in script or in the source document."
Yet, when appending anchor element via innerHTML, calling
getAttribute('href', 2) on that element always returns string
representing absolute url (ignoring the actual value).
Does anyone know of a way to get value of href attribute exactly as it
was defined in the document?
[1] http://msdn2.microsoft.com/en-us/library/ms536429.aspx
Thank you.