[ 
https://issues.apache.org/jira/browse/RIPPLE-56?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13922495#comment-13922495
 ] 

jeremy Colton commented on RIPPLE-56:
-------------------------------------

I have been using Ripple for over a year to build my UI and test uploading 
images and it has been working fine.  Now when I am trying to upload an image I 
see this error as well:

Uncaught TypeError: Failed to execute 'setAttribute' on 'Element': 2 arguments 
required, but only 1 present. 

I am using Ripple 0.9.15.  Has anyone else only recently started having this 
problem?  Any solution?

Many thanks

> syntax error: setAttribute() is only being passed 1 arg
> -------------------------------------------------------
>
>                 Key: RIPPLE-56
>                 URL: https://issues.apache.org/jira/browse/RIPPLE-56
>             Project: Apache Ripple
>          Issue Type: Bug
>         Environment: Chrome
> $> ripple version
> 0.9.20
>            Reporter: Andrew Visser
>
> Here is (according to the Chrome debugger) ripple.js line 49275 (and 
> surrounding)
> ---------
>        upload.addEventListener('change', function () {
>           clear();
>           var capture = document.createElement(getType());
>           capture.setAttribute("controls");
>           capture.style.display = "inline";
>           capture.style.height = (screen.availHeight - 50) + "px";
>           capture.src = window.webkitURL.createObjectURL(upload.files[0]);
>           result.appendChild(capture);
>           take.style.display = "inline";
>         });
> -----------
> The call to setAttribute() is only passed one argument. That is an 
> insufficient number of arguments.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to