Valid URL question.


R. Clayton (rclayton@monmouth.edu)
(no date)


If ^ represents a space, is <^a^href^=^"www.commvault.com"> a valid anchor tag?

  How about this: any space characters in excess of those necessary to separate
  otherwise ambiguous tokens should be ignored. A space character is any
  character for which isspace() returns true.

  From the example, there is no possible ambiguity between the token "<" and
  the token "a", so all space characters between these two tokens should be
  ignored.

  There is possible ambiguity between the token a and the token href, so there
  must be at least one space character between these two tokens, and all space
  characters except for one (it doesn't matter which one) must be ignored.

  Two tokens are ambiguous if you can't tell where one ends and the other
  starts. The tokens "a" and "href" are ambiguous, because given "ahref", you
  don't know if the two tokens are "a" and "href" or "ah" and "ref" or "ahr"
  and "ef" and so on.



This archive was generated by hypermail 2.0b3 on Mon Dec 15 2003 - 19:45:05 EST