Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change DEFAULT_INVISIBLE_TAG_ATTRS

  • Loading branch information...
commit c3a612a024e4ad9d67783f06bc0ccdc93cc76ff1 1 parent 6ca14a7
@keitaf keitaf authored
View
2  src/com/twitter/Autolink.java
@@ -25,7 +25,7 @@
/** HTML attribute to add when noFollow is true (default) */
public static final String NO_FOLLOW_HTML_ATTRIBUTE = " rel=\"nofollow\"";
/** Default attribute for invisible span tag */
- public static final String DEFAULT_INVISIBLE_TAG_ATTRS = "style='position:absolute;left:-999px;'";
+ public static final String DEFAULT_INVISIBLE_TAG_ATTRS = "style='position:absolute;left:-9999px;'";
protected String urlClass;
protected String listClass;
View
2  tests/com/twitter/AutolinkTest.java
@@ -58,7 +58,7 @@ public void testURLEntities() {
List<Entity> entities = new ArrayList<Entity>();
entities.add(entity);
String tweet = "http://t.co/0JG5Mcq";
- String expected = "<a href=\"http://t.co/0JG5Mcq\" rel=\"nofollow\"><span class='tco-ellipsis'><span style='position:absolute;left:-999px;'>&nbsp;</span></span><span style='position:absolute;left:-999px;'>http://</span><span class='js-display-url'>blog.twitter.com/2011/05/twitte</span><span style='position:absolute;left:-999px;'>r-for-mac-update.html</span><span class='tco-ellipsis'><span style='position:absolute;left:-999px;'>&nbsp;</span>…</span></a>";
+ String expected = "<a href=\"http://t.co/0JG5Mcq\" rel=\"nofollow\"><span class='tco-ellipsis'><span style='position:absolute;left:-9999px;'>&nbsp;</span></span><span style='position:absolute;left:-9999px;'>http://</span><span class='js-display-url'>blog.twitter.com/2011/05/twitte</span><span style='position:absolute;left:-9999px;'>r-for-mac-update.html</span><span class='tco-ellipsis'><span style='position:absolute;left:-9999px;'>&nbsp;</span>…</span></a>";
assertAutolink(expected, linker.autoLinkEntities(tweet, entities));
}
Please sign in to comment.
Something went wrong with that request. Please try again.