[Pkg-mozext-commits] [itsalltext] 373/459: Fixed issue with mal-formed readonly attributes
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:39 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit b03cd80dcd228dd7aba8cc4b578ebb5dff3c5737
Author: Christian Höltje <docwhat at gerf.org>
Date: Fri Jun 10 22:45:38 2011 -0400
Fixed issue with mal-formed readonly attributes
---
src/chrome/content/cacheobj.js | 1 +
src/install.rdf | 2 +-
tests/readonly.html | 10 +++++++++-
3 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/src/chrome/content/cacheobj.js b/src/chrome/content/cacheobj.js
index 4289004..a8b962c 100644
--- a/src/chrome/content/cacheobj.js
+++ b/src/chrome/content/cacheobj.js
@@ -730,6 +730,7 @@ CacheObj.prototype.adjust = function () {
if ((cstyle && (cstyle.display == 'none' ||
cstyle.visibility == 'hidden')) ||
el.getAttribute('readonly') ||
+ el.readOnly ||
el.getAttribute('disabled')
) {
display = 'none';
diff --git a/src/install.rdf b/src/install.rdf
index 9046e86..6fbb159 100644
--- a/src/install.rdf
+++ b/src/install.rdf
@@ -7,7 +7,7 @@
<RDF:Description RDF:about="rdf:#$firefox"
em:id="{ec8030f7-c20a-464f-9b0e-13a3a9e97384}"
em:minVersion="3.5"
- em:maxVersion="4.0b8pre" />
+ em:maxVersion="6.*" />
<!-- SeaMonkey -->
<RDF:Description RDF:about="rdf:#$seamonkey"
diff --git a/tests/readonly.html b/tests/readonly.html
index d21f54d..b2d1cd0 100644
--- a/tests/readonly.html
+++ b/tests/readonly.html
@@ -18,7 +18,15 @@
<form action="" method="get">
- <textarea id="ro" readonly="readonly">This is a readonly textearea.</textarea>
+ <textarea id="ro" readonly="readonly">This is a well-formed readonly textearea.</textarea>
+ </form>
+
+ <form action="" method="get">
+ <textarea id="ro" readonly="">This is a badly-formed readonly textearea.</textarea>
+ </form>
+
+ <form action="" method="get">
+ <textarea id="ro" readonly>This is also badly-formed readonly textearea.</textarea>
</form>
<div class="back"><a href=".">back</a></div>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list