SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: xpath and IE

  1. #1
    SitePoint Guru afridy's Avatar
    Join Date
    Mar 2007
    Posts
    960
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    xpath and IE

    Hai folks,

    while am learning xpath at w3schools, i came across this note

    "IE5 and later has implemented that [0] should be the first node, but according to the W3C standard it should have been [1]!!"
    http://www.w3schools.com/xpath/xpath_syntax.asp

    Now i just wanna make sure that above note is still really a concern or this problem has been sorted out by IE to comply with w3 standed?

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    16,445
    Mentioned
    160 Post(s)
    Tagged
    1 Thread(s)
    I couldn't find that quote in the w3c docs, but I think the operative word is "should". Then again, maybe arrays "should" start with 1 as well. (But they do not) This is just "one of those things" AFAIK. Although I would be interested in learning the history of its origins.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •