Why did you tagged report as invalid?
I just got a file with minified JS code which has `use strict` burrowed deep somewhere inside correct html file but it's still recognized as perl script.
I can't use some tools to open the file in browser by using xdg-open and forced to use browser-specific launcher.
Hi Sebastien. Thaks your for your reply.
I suggest you to do the following to see that even if file is starting with proper tags it is recognized as `application/ x-perl` :
$ tee "index.html" <<eol /body>< /html>
<!DOCTYPE html>
<html><body>use strict<
eol
$ xdg-mime query filetype index.html # -> application/x-perl - wrong type
Why did you tagged report as invalid?
I just got a file with minified JS code which has `use strict` burrowed deep somewhere inside correct html file but it's still recognized as perl script.
I can't use some tools to open the file in browser by using xdg-open and forced to use browser-specific launcher.