Skip to content
This repository
branch: master

Jun 24, 2014

  1. Rick Viscomi

    Merge pull request #47 from brwr/master

    fix(jquery-trunk8): Fix cross-browser compatibility issue with stripping HTML
    authored

Jun 20, 2014

  1. fix(jquery-trunk8): Fix cross-browser compatibility issue with stripp…

    …ing HTML
    
    Internet Explorer introduced element.innerText a while back which retrieves the text from a DOM node. All other major browsers have agreed to use Node.textContent instead. While most of them also support element.innerText, Firefox does not.
    
    The trunk8 plugin for jQuery uses the check tmp.textContent || tmp.innerText to retrieve the text from a given node. This won't work in Firefox when `tmp` has no content -- specifically when `html` is an empty string -- because `tmp.textContent` returns `""` (an empty string, which is falsey in JavaScript) and `tmp.innerText` returns `undefined`. Because of JavaScript's short circuiting feature, the expression `tmp.textContent || tmp.innerText` then returns `undefined`. This caused an error in one code  which ultimately resulted in the page not rendering entirely.
    
    This fix checks to see whether the browser supports Node.textContent and, if so, returns `tmp.textContent`. Otherwise, return `tmp.innerText`.
    James Brewer authored

Jul 20, 2013

  1. Rick Viscomi

    Merge pull request #29 from ztratar/master

    HTML Support for Trunk8
    authored

Jul 19, 2013

  1. There were mixed tabs and spaces. Converted all to tabs

    Zach Tratar authored
  2. Trunk8 fill is inserted either into the HTML element or outside of th…

    …e HTML element depending upon which type of HTML tag is presented
    Zach Tratar authored
  3. Fixed ParseHTML to properly recognize special characters. Also fixed …

    …punctuation when it follows an HTML element.
    Zach Tratar authored

Jun 16, 2013

  1. Merge branch 'master' of https://github.com/ztratar/trunk8

    Zach Tratar authored
  2. Zach Tratar

    Fixed redundent variable initialization and comment grammar

    ztratar authored Zach Tratar committed

Jun 06, 2013

  1. Zach Tratar

    Fixed redundent variable initialization and comment grammar

    ztratar authored
  2. Zach Tratar

    Merge branch 'master' of https://github.com/ztratar/trunk8

    ztratar authored
  3. Zach Tratar

    Fixed bite extra white-space for HTML formatted strings

    ztratar authored

Jun 05, 2013

  1. Zach Tratar

    Merge pull request #1 from apuntovanini/master

    Fixed splite undefined method
    ztratar authored
  2. Andrea Vanini

    FIX splite undefined method

    apuntovanini authored
  3. Zach Tratar

    Added HTML support to trunk8 by passing parseHTML as a setting

    ztratar authored

Jun 04, 2013

  1. Rick Viscomi

    Merge pull request #28 from eljojo/master

    Show text rather than HTML when using the tooltip option.
    authored

May 22, 2013

  1. José Tomás Albornoz

    When using the tooltip option, showing the text part of the element,

    rather than the html part.
    
    It works so if we're shortening links, we don't see html as the tooltip.
    eljojo authored

Mar 06, 2013

  1. Rick Viscomi

    Merge pull request #21 from jgoodall/master

    add component.json for use with bower
    authored

Mar 05, 2013

  1. John Goodall

    added component.json to use with bower

    jgoodall authored

Feb 04, 2013

  1. Rick Viscomi

    fixing manifest

    authored
  2. Rick Viscomi

    fixing manifest

    authored
  3. Rick Viscomi

    fixing manifest

    authored

Jan 19, 2013

  1. Rick Viscomi

    once more

    with gusto
    authored
  2. Rick Viscomi

    #20 update plugin version

    Need unique version number for jQuery plugin.
    authored
  3. Rick Viscomi

    #20 jquery plugin manifest file

    authored

Dec 13, 2012

  1. Rick Viscomi

    Merge pull request #18 from carlostubff/master

    Float reserved word
    
    dupe of #16
    authored

Dec 12, 2012

  1. carlostubff

    change the variable float to floats because float is a reserved word

    carlostubff authored

Nov 24, 2012

  1. Rick Viscomi

    Merge pull request #15 from codef0rmer/patch-1

    A fix for an error in demo.html
    authored
  2. codef0rmer

    A fix for an error in demo.html

    The error was "Uncaught TypeError: Object #<HTMLSpanElement> has no method 'data' "
    codef0rmer authored

Oct 21, 2012

  1. Rick Viscomi

    Merge pull request #14 from zgood/master

    getLineHeight function update
    authored

Oct 18, 2012

  1. zgood

    Update trunk8.js

    zgood authored
  2. zgood

    Update trunk8.js

    zgood authored

Oct 01, 2012

  1. Rick Viscomi

    issue #11 HTML value for data storage

    - use jQuery.html() to get the content of the element
    - update to 1.3.1
    authored

Sep 27, 2012

  1. Rick Viscomi

    issue #8 unique settings object for each instance

    - data-trunk8 object attached to every truncated HTML element
    - original source text preserved in data-trunk8 object key
    "original_text"
    - instance settings preserved in data-trunk8 object key "settings"
    - getSettings method will only return the settings of the first matched
    HTML element
    - default settings now exposed through "defaults" property, update this
    directly for the old (previously undesirable) behavior
    authored

Sep 23, 2012

  1. Rick Viscomi

    rel link to demo

    for improved analytics, add "rel=github" to links back to the demo page
    authored

Sep 10, 2012

  1. Rick Viscomi

    issue #9 update method signature

    - `update` method requires new_string parameter
    - method signature updated to reflect new parameter name
    - added heatmap link for kicks
    - updated to v1.2.3
    authored
Something went wrong with that request. Please try again.