Closed Bug 1102054 Opened 11 years ago Closed 10 years ago

NoModificationAllowedError: Modifications are not allowed for this document

Categories

(Firefox :: Untriaged, defect)

33 Branch
x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: pest93, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:33.0) Gecko/20100101 Firefox/33.0 Build ID: 20141113143407 Steps to reproduce: I wanted to change pseudo selector ::after looking for a this article http://davidwalsh.name/pseudo-element. My code: var x= 1; $(window).scroll(function () { x += 1; window.getComputedStyle(document.querySelector('.overall'), ':before').setProperty('bottom' , x+'px') }); Actual results: Firebug displays this error: NoModificationAllowedError: Modifications are not allowed for this document Expected results: Pseudo selector's propertu must be changing.
Your testcase is incomplete - in what content are you running this? i.e. what is '.overall' and does the pseudoelement exist already or not? Please provide a complete testcase.
Flags: needinfo?(pest93)
Based of lack of information from the reporter this bug will have the Status: Resolved as incomplete. If you want to add more info that can help to understand this bug please reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → INCOMPLETE
Flags: needinfo?(pest93)
You need to log in before you can comment on or make changes to this bug.