Last modified: 2014-01-16 19:20:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61002, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59002 - VisualEditor:Uncaught TypeError: Object [object Text] has no method 'setAttribute' appears while attempting to save after adding Cite Web template
VisualEditor:Uncaught TypeError: Object [object Text] has no method 'setAttri...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Editing Tools (Other open bugs)
unspecified
All All
: High critical
: VE-deploy-2014-01-16
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-27 18:44 UTC by Rummana Yasmeen
Modified: 2014-01-16 19:20 UTC (History)
8 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot of the error (98.42 KB, image/png)
2013-12-27 18:44 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2013-12-27 18:44:27 UTC
Created attachment 14179 [details]
Screenshot of the error

Steps to reproduce:

1.Open the editor for page
2.Go to Insert>Template
3.Search for template Cite Web
4.Add a a value for source title field but keep the URL field empty
5.Add the template
6.Click the button "Save Page"

Observed Result: 
The "Save Page" button does not work .In the console it is showing an error:
Uncaught TypeError: Object [object Text] has no method 'setAttribute'


See the screenshot attached
Comment 1 Rummana Yasmeen 2013-12-27 18:45:40 UTC
Test Environment: http://en.wikipedia.beta.wmflabs.org/
Browser: Chrome Version 26.0.1410.65 
OS: MAC OS X 10. 8. 5 
Page:http://en.wikipedia.beta.wmflabs.org/w/index.php?title=27th_december&veaction=edit
Comment 2 Hay Kranen 2014-01-13 12:29:58 UTC
I can reproduce this problem as well. A pity, because not being able to save makes the Visual Editor, well, pretty much useless. I've changed priority to 'High' for that reason.
Comment 3 Hay Kranen 2014-01-13 12:32:05 UTC
Adding to my previous comment: when i try to switch to wiki markup mode i get the same error. No way to save my stuff :(

Here's a stack trace:

Uncaught TypeError: Object [object Text] has no method 'setAttribute' 
ve.dm.MWTransclusionNode.static.toDomElements 
ve.dm.Converter.getDomElementsFromDataElement 
ve.dm.Converter.getDomSubtreeFromData 
ve.dm.MWReferenceNode.static.toDomElements 
ve.dm.Converter.getDomElementsFromDataElement 
ve.dm.Converter.getDomSubtreeFromData 
ve.dm.Converter.getDomSubtreeFromModel 
ve.dm.Converter.getDomFromModel 
ve.init.mw.ViewPageTarget.editSource 
ve.ui.MWEditModeSourceTool.onSelect 
OO.ui.ToolGroup.onMouseUp 
OO.ui.PopupToolGroup.onMouseUp 
proxy 
jQuery.event.dispatch 
elemData.handle.eventHandle
Comment 4 Rummana Yasmeen 2014-01-14 20:13:56 UTC
This s\is happening for adding all templates on test2.
Comment 5 Rummana Yasmeen 2014-01-14 20:14:39 UTC
*This is happening for adding all templates on test2*
Comment 6 Gerrit Notification Bot 2014-01-14 23:47:06 UTC
Change 107511 had a related patch set uploaded by Esanders:
Wrap text nodes in spans if trying to mark as data-ve-ignore

https://gerrit.wikimedia.org/r/107511
Comment 7 Gerrit Notification Bot 2014-01-15 01:33:16 UTC
Change 107530 had a related patch set uploaded by Catrope:
Wrap text nodes in spans if trying to mark as data-ve-ignore

https://gerrit.wikimedia.org/r/107530
Comment 8 Gerrit Notification Bot 2014-01-15 01:34:11 UTC
Change 107531 had a related patch set uploaded by Catrope:
Wrap text nodes in spans if trying to mark as data-ve-ignore

https://gerrit.wikimedia.org/r/107531
Comment 9 Gerrit Notification Bot 2014-01-15 01:34:20 UTC
Change 107511 merged by jenkins-bot:
Wrap text nodes in spans if trying to mark as data-ve-ignore

https://gerrit.wikimedia.org/r/107511
Comment 10 Roan Kattouw 2014-01-15 02:48:51 UTC
Fix has been merged, backported and will be deployed during tomorrow's lightning deploy window (Thu Jan 16 00:00 - 00:30 UTC; Wed Jan 15 16:00 - 16:30 PST)
Comment 11 Ed Sanders 2014-01-15 10:46:34 UTC
data-ve-ignore showing up in converter in some cases still. Working on a fix.
Comment 12 Gerrit Notification Bot 2014-01-15 11:08:15 UTC
Change 107559 had a related patch set uploaded by Esanders:
About-group extra DOM data in toDomElements

https://gerrit.wikimedia.org/r/107559
Comment 13 Gerrit Notification Bot 2014-01-15 20:26:01 UTC
Change 107559 merged by jenkins-bot:
About-group extra DOM data in toDomElements

https://gerrit.wikimedia.org/r/107559
Comment 14 Gerrit Notification Bot 2014-01-15 20:43:13 UTC
Change 107638 had a related patch set uploaded by Catrope:
About-group extra DOM data in toDomElements

https://gerrit.wikimedia.org/r/107638
Comment 15 Gerrit Notification Bot 2014-01-15 20:53:26 UTC
Change 107640 had a related patch set uploaded by Catrope:
About-group extra DOM data in toDomElements

https://gerrit.wikimedia.org/r/107640
Comment 16 Gerrit Notification Bot 2014-01-16 00:19:04 UTC
Change 107531 merged by Catrope:
Wrap text nodes in spans if trying to mark as data-ve-ignore

https://gerrit.wikimedia.org/r/107531
Comment 17 Gerrit Notification Bot 2014-01-16 00:19:13 UTC
Change 107640 merged by Catrope:
About-group extra DOM data in toDomElements

https://gerrit.wikimedia.org/r/107640
Comment 18 Gerrit Notification Bot 2014-01-16 00:19:38 UTC
Change 107530 merged by Catrope:
Wrap text nodes in spans if trying to mark as data-ve-ignore

https://gerrit.wikimedia.org/r/107530
Comment 19 Gerrit Notification Bot 2014-01-16 00:19:49 UTC
Change 107638 merged by Catrope:
About-group extra DOM data in toDomElements

https://gerrit.wikimedia.org/r/107638
Comment 20 James Forrester 2014-01-16 02:02:30 UTC
Now fixed and back-ported to production.
Comment 21 Rummana Yasmeen 2014-01-16 04:12:43 UTC
This issue is verified for test2.But in mw.org I still cannot save after adding a template in Chrome 26.0.1410.65, however it does not show any error in the console as such Uncaught TypeError: Object [object Text] has no method 'setAttribute'

In FireFox, it works for both test 2 and mw.org.

Hence reopening it.If it is a separate issue please Close this one , I will file a separate issue for mw.org
Comment 22 Ed Sanders 2014-01-16 16:50:18 UTC
Can't reproduce on mw.org. Which template did you use?
Comment 23 James Forrester 2014-01-16 16:52:54 UTC
(In reply to comment #21)
> This issue is verified for test2.But in mw.org I still cannot save after
> adding
> a template in Chrome 26.0.1410.65, however it does not show any error in the
> console as such Uncaught TypeError: Object [object Text] has no method
> 'setAttribute'
> 
> In FireFox, it works for both test 2 and mw.org.
> 
> Hence reopening it.If it is a separate issue please Close this one , I will
> file a separate issue for mw.org

Maybe if you refresh it will go away? Sounds most likely like a cacheing issue…
Comment 24 Rummana Yasmeen 2014-01-16 19:20:32 UTC
Works for mw.org in Chrome now.Might be a caching issue.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links