-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Here is the sample code
let ele = document.createElement("div");
ele.addEventListener("click", (e) => {
const params = {};
for (const name of ele.getAttributeNames()) {
params[name] = ele.getAttribute(name);
}
});
document.documentElement.appendChild(ele);Here is the query code
import javascript
import DataFlow::PathGraph
from DataFlow::SourceNode e
where e = DOM::documentRef().getAMemberCall("createElement")
select eCan query ele, but try to query ele.getAttribute will not work
import javascript
import DataFlow::PathGraph
from DataFlow::SourceNode e
where e = DOM::documentRef().getAMemberCall("createElement")
select e,e.getAMemberCall("getAttribute")Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Fields
Give feedbackNo fields configured for issues without a type.