XPath = //body//*[not(name() = "img" or name() = "p" or name() = "style")]
DOMNodeList Object
(
[length] => 4
)
<img src="image.gif" onerror="myFunction()" style="background:red" onclick="myFunction()">
<p>A function is triggered if an error occurs when loading the image. The function shows an alert box with a text.
In this example we refer to an image that does not exist, therefore the onerror event occurs.</p>
<p>a sample para with a </p>
XPath = //body//*[not(name() = "img" or name() = "p" or name() = "style")]
DOMNodeList Object
(
[length] => 4
)
<img src="image.gif" onerror="myFunction()" style="background:red" onclick="myFunction()"><p>A function is triggered if an error occurs when loading the image. The function shows an alert box with a text.
In this example we refer to an image that does not exist, therefore the onerror event occurs.</p>
<p>a sample para with a </p>