Open Arigatouz opened 4 years ago
The reason this works is because Text inherits from Node so they both have the TEXT_NODE variable. It is probably best to use Node instead of Text but they both work.
On Tue, Feb 4, 2020, 11:17 PM Ali Gamal notifications@github.com wrote:
hello kyle iam on of your biggest fans in Egypt really love your work and i have abit of question why did you use in the JS file Text.TEXT_NODE instade of Node.TEXT_NODE according to https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType there is no Text.TEXT_NODE then how did js understand it ?? sorry if the question is so stupied but it got me confused !
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/WebDevSimplified/Coronavirus-Chrome-Extension/issues/1?email_source=notifications&email_token=AJPAR2Z32OQ2V7ZLWE6CVRTRBJDYHA5CNFSM4KQFAIYKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ILDE23Q, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJPAR22NLMRNUZK5IHJCXPTRBJDYHANCNFSM4KQFAIYA .
Thank you so much it was really useful to me i used it and make an extension that block porn sites thank you for the inspiration. Its on my repository if you care to see it thanks in advance
hello kyle iam one of your biggest fans in Egypt really love your work and i have abit of question why did you use in the JS file
Text.TEXT_NODE instade of Node.TEXT_NODE
according to https://developer.mozilla.org/en-US/docs/Web/API/Node/nodeType
there is no Text.TEXT_NODE then how did js understand it ?? sorry if the question is so stupied but it got me confused !