Skip to content

Commit

Permalink
Minor fix to informative text regarding toDataURL
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@48 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 1, 2006
1 parent fc4eecc commit cdabda1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -15417,9 +15417,10 @@ http://lxr.mozilla.org/mozilla/source/dom/public/idl/html/nsIDOMNSHTMLTextAreaEl

<p class="note">When trying to use types other than <code>image/png</code>,
authors can check if the image was really returned in the requested format
by checking to see if the returned string starts with the exact string
"<code>data:image/png</code>" or not. If it does, the image is PNG, and
thus the requested type was not supported.
by checking to see if the returned string starts with one the exact
strings "<code>data:image/png,</code>" or "<code>data:image/png;</code>".
If it does, the image is PNG, and thus the requested type was not
supported.

<p>Arguments other than the <var title="">type</var> must be ignored, and
must not cause the user agent to raise an exception (as would normally
Expand Down
7 changes: 4 additions & 3 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -13492,9 +13492,10 @@ http://lxr.mozilla.org/mozilla/source/dom/public/idl/html/nsIDOMNSHTMLTextAreaEl
<p class="note">When trying to use types other than
<code>image/png</code>, authors can check if the image was really
returned in the requested format by checking to see if the returned
string starts with the exact string "<code>data:image/png</code>" or
not. If it does, the image is PNG, and thus the requested type was
not supported.</p>
string starts with one the exact strings
"<code>data:image/png,</code>" or "<code>data:image/png;</code>". If
it does, the image is PNG, and thus the requested type was not
supported.</p>

<p>Arguments other than the <var title="">type</var> must be
ignored, and must not cause the user agent to raise an exception (as
Expand Down

0 comments on commit cdabda1

Please sign in to comment.