Question: ) Determine all visible objects within the DOM tree (15 points) There may be many elements on a page, but they may not appear visually

) Determine all visible objects within the DOM tree (15 points) There may be many elements on a page, but they may not appear visually on the page. Here, your task is to determine which elements will be visible. A Tag's displayed property should be set to true if: . The Tag name is "content" or "title" . The Tag contains a child node that has the property "displayed" set to true. Complete the definition of void determine_visible_objects(Tag* const root) where you correctly set flags for "displayed" within the Tag nodes in the given tree. ) Determine all visible objects within the DOM tree (15 points) There may be many elements on a page, but they may not appear visually on the page. Here, your task is to determine which elements will be visible. A Tag's displayed property should be set to true if: . The Tag name is "content" or "title" . The Tag contains a child node that has the property "displayed" set to true. Complete the definition of void determine_visible_objects(Tag* const root) where you correctly set flags for "displayed" within the Tag nodes in the given tree
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
