GithubHelp home page GithubHelp logo

html-email-preflight's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

sstok

html-email-preflight's Issues

Undefined Method

There is a call to an undefined method which is if(!Encoding::isSameEncoding($encoding, 'utf-8')) { on line 200 of EmailPreflight.php which is refering to ju1ius\Text\Encoding::isSameEncoding() but it does not exist.

premailer updates

Hi,

Seems like this repo has not been updated in a while, wanted your suggestion if we should go with this or not.

a:link is equivalent to a

Awesome work with this port. Using it with your awesome CSS-Parser too.

This is a small issue but common for email designers to use.

The a:link selector is the same as the a selector. However, this doesn't get in-lined.

Issue with external stylesheet

Hi Ju1ius,

I think this is in your to do list but I've been trying to figure this error out for the past hour with how your consume works with chars. Didn't get very far!

I am basically trying to get it to inline when using an absolute URL. But I get this error. Any direction on how to fix this or what's causing this?

  Fatal error: Uncaught exception 'ju1ius\Css\Exception\ParseException' with message 'Tried to consume 1 chars, exceeded file end in    http://localhost/master.css on line 88, column 2' in 
  C:\classes\helpers\ju1ius\Css\AbstractParser.php:229 Stack trace: #0 
  C:\classes\helpers\ju1ius\Css\Parser.php(1023): ju1ius\Css\AbstractParser->_consume(1) #1 
  C:\classes\helpers\ju1ius\Css\Parser.php(160): ju1ius\Css\Parser->_skipStyleRule() #2 
  C:\classes\helpers\ju1ius\Css\Parser.php(102): ju1ius\Css\Parser->_parseRuleList(Object(ju1ius\Css\RuleList), true) 
  #3 C:classes\helpers\ju1ius\Css\Parser.php(64): ju1ius\Css\Parser->_parseStyleSheet(Object(ju1ius\Css\StyleSheet)) #4
   C:\classes\helpers\ju1ius\Css\Parser.php(53): ju1ius\Css\Parser->parseStyleSheet(Object(ju1ius\Text\Source\File)) #5 
  C:\classes\helpers\ju1ius\Html\EmailPreflight.php(451): ju1 in ju1ius\Css\AbstractParser.php on line 229

Btw, are you based in London by any chance?

Converting color names to hex when already inline

If a CSS property is already in line for example:

  <p style="color: red;">Hello there</p>

The email preflight does not change the color red to its hex value. However, if its in an embeded style block then the color does get converted to hex.

Is this intentional?

Invalid or Relative URLs

I think this is already on your to do list but when a link to a style sheet is invalid or its a relative URL, this error is thrown:

Fatal error: Call to a member function parseMediaQuery() on a non-object in EmailPreflight.php on line 440

Those invlaid links or relative URLs probably should just be ignored.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.