GithubHelp home page GithubHelp logo

url2mhtml's People

Watchers

 avatar

Forkers

borderlessdata

url2mhtml's Issues

Produces invalid mht archives in IE9+

What steps will reproduce the problem?

The problem is with the boundary marker when embedding content. This can be 
fixed with a code change.

What is the expected output? What do you see instead?

Expected output is a working mht archive. What I'm getting instead is an 
invalid mht file.


What version of the product are you using? On what operating system?

The only version available.

Please provide any additional information below.

This issue can be fixed by adjusting the following:

In builder.cs, update the AppendMhtBoundary function

private void AppendMhtBoundary(bool end = false)
{
    // I have replaced " ", with "". look into this later.
    AppendMhtLine(string.Empty);
    if (end == true)
    {
        AppendMhtLine("--" + _MimeBoundaryTag + "--");
    }
    else
    {
        AppendMhtLine("--" + _MimeBoundaryTag);
    }
    //AppendMhtLine(" ");
}

and the AppendMhtFiles function

private void AppendMhtFiles()
{
    foreach (DictionaryEntry de in WebFiles)
    {
        WebFile ef = (WebFile)de.Value;
        AppendMhtFile(ef);
    }
    AppendMhtBoundary(true);
}


This makes sure that the last embedded object adds the necessary "--" onto the 
end of the boundary marker.

Original issue reported on code.google.com by [email protected] on 6 Aug 2014 at 6:49

Attachments:

Why hasn't this been installed in Google Chrome instead of lying in the boneyard since 1998?

 BWhat steps will reproduce the problem?
1. By the history this has been laying in the boneyard since 1998.
2. Others like Microsoft IE currently use it since iit is current html code.  
Google Chrome isn't using it yet. 
3.  Google Chrome still makes a shortcut and a folder full of parts as bad as a 
disorganized hardware store. 

What is the expected output? What do you see instead?
An url saved to one file instead of a shortcut and a folder holding everything 
under the sun. 

What version of the product are you using? On what operating system?

Current public Google Chrome available 7/28/2010 running on Microsoft XP.

Please provide any additional information below.

This is one of two Google Chrome missing items that occasionally almost makes 
me uninstall Google Chrome and go back to Internet Explorer. 



Original issue reported on code.google.com by PastorDIC on 28 Jul 2010 at 10:57

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.