Regular expressions. If two elements have the same id, this should return them and the text between them, and if they don't it should return null. I think.
docstring.match(/id=("|')([^"']*)$1.*id=("|')$2$3/)

Blair

On 2/15/06, Taco Fleur <[EMAIL PROTECTED]> wrote:
Is there a way to detect duplicate IDs in a document, with _javascript_?

--
Taco Fleur - http://www.pacificfox.com.au
Web Design, Web development, Graphic Design and Complete Internet Solutions
an industry leader with commercial IT experience since 1994 …

Reply via email to