Browse files

Change DEFAULT_INVISIBLE_TAG_ATTRS

  • Loading branch information...
1 parent 6ca14a7 commit c3a612a024e4ad9d67783f06bc0ccdc93cc76ff1 @keitaf keitaf committed Mar 30, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/com/twitter/Autolink.java
  2. +1 −1 tests/com/twitter/AutolinkTest.java
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));
}

0 comments on commit c3a612a

Please sign in to comment.