Explore chapters and articles related to this topic
Defending Web Applications Against JavaScript Worms on Core Network of Cloud Platforms
Published in Brij B. Gupta, Michael Sheng, Machine Learning for Computer and Cyber Security, 2019
Shashank Tripathi, Pranav Saxena, Harsh D. Dwivedi, Shashank Gupta
Component Hierarchy Generator (CHG): This module reads string S and generates a DOM tree of the string in which every component gets separated. DOM tree is the object presentation of the HTML document and acts like the embrasure of the HTML element to the outside world, like JavaScript. The root of tree is the ‘Document’ object. Generating the DOM tree operation is performed by the syntax analyzer, which generates the parse tree. The generated DOM tree is passed to the semantic analyzer that generates the semantically parse tree that is defined according to the HTML_DTD rule. For example, S=”<html><head><title></title><script></script></head></html>”.
Data Visualization
Published in Hossam Fattah, LTE™ Cellular Narrowband Internet of Things (NB-IoT), 2021
When you create a new map instance, you specify a <div> HTML element in the page as a container for the map. HTML nodes are children of the JavaScript document object, and you obtain a reference to this element via the document.getElementById() method.
1
Published in Uwe Engel, Anabel Quan-Haase, Sunny Xun Liu, Lars Lyberg, Handbook of Computational Social Science, Volume 2, 2021
Stefan Bosse, Lena Dahlhaus, Uwe Engel
Mapping the DOM content structure on the target data structure is a challenge. HTML element classes describe commonly formatting styles, not semantics or data structure. An extensive commonly handcrafted analysis of the web pages is mandatory.
Robust Web Data Extraction Based on Weighted Path-layer Similarity
Published in Journal of Computer Information Systems, 2022
The property of the text, image and others is determined by the leaf node name; video, audio is set by the leaf node name or the link’s value from the leaf’s ancestor node <a>, <embed> corresponding to HTML4 and HTML5 standard. The property score is as equation (1). Affiliation is the HTML element type of a leaf node which is determined by ancestor nodes the leaf node is affiliated to.
Metaheuristic Algorithm for State-Based Software Testing
Published in Applied Artificial Intelligence, 2018
Ramzi A. Haraty, Nashat Mansour, Hratch Zeitunlian
Once a candidate element is detected, we execute the event attached to that element. In order to determine whether the execution of the event results in state change, we compare the DOM-tree version after executing the event and the DOM-tree version just before executing that event. If the execution of the event results in a state change, we check whether the resulting state is already covered in the graph. If the state was not previously covered, the new state is added to the graph, and an edge representing the executed event will connect the two states. If the state is already covered, an edge will be added between the states. Figure 2 shows the DOM-tree before an event is executed. This state is characterized by having the entire HTML element set to null or empty. Figure 3 shows the state of the DOM after “Select Album” event is executed. Note the change in the element <span id = “lblAlbumName”> before and after the event execution; such a state is identified as a new state. The obtained state, being a new state, will be added to the FSM and an edge marking the event select album will be added between the states. Next, the clickable element <input type = “submit” name = “btnShowAlbum”> is detected and the “Show Album” event is executed. The execution of this event forces dynamic changes to DOM and a transition to a new state. The new DOM state representation is depicted in Figure 4. The figure shows that at least one photo—an image element with nonempty image source and text element containing the description of the photos in addition to the name of the album. Comparing this state with the previously obtained states, it is marked as new and added to the FSM. Similarly, all clickable elements will be detected and executed, and the FSM generated covering all functionalities of the Web 2.0 application is included.