Question about property names in web pages

General discussion about eValid, its characteristis and applications.

Question about property names in web pages

Postby RPerry » Mon Jun 15, 2020 9:55 am

Good morning.

Are all property names in a web page always unique and what happens if they are not?

Thanks
RPerry
 
Posts: 1
Joined: Mon Jun 15, 2020 9:53 am

Re: Question about property names in web pages

Postby eValid » Tue Jun 16, 2020 9:37 am

RPerry wrote:Good morning.

Are all property names in a web page always unique and what happens if they are not?

Thanks


Thanks for asking RPerry.

The hope would be that the element IDs in a web page are all unique but that may not be true.

The same applies to any other property name:

It is possible for two separate index values in the DOM tree to have identically named property names.

The most common issue for this, is, how do you find the index that has the right one?

Here the command you'll be using:

http://www.e-valid.com/Products/Documen ... ement.html

The key to solving this riddle is to know more about the page.

You MUST find some "fixpoint" in the page that you can use.

For example, you want the element that has property X=SOMETHING that happens after the ONLY element that has the property PI=3.14159.

So you first find that one, then increment the sourceIndex by 1, and then search again for the element hat has X=SOMETHING.

eValid remembers the sourceIndex of the last search made, so subsequent commands can pivot on that one point.


-- eValid Support
eValid
 
Posts: 2392
Joined: Tue Jan 01, 2008 12:48 pm
Location: USA


Return to General Solution Topics

Design Downloaded from free phpBB templates | free website templates | Free Web Buttons